package com.aygxy.carproject.pojo.category.entity;

import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class CategoryTreeEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    private long id;
    private long parentId;
    private String name;
    private String iconUrl;
    private Integer sort;
    private Integer enable;
    private Integer depth;
    private Integer parent;

    /**
     * 如果当前isParent是1，则需要下级分类
     */
    private List<CategoryTreeEntity> childrens;

}
